import React, { Component } from 'react';
import { Button } from '@icedesign/base';

import {creatApp} from '../../actions/appAction';

export default class Test extends Component {
  static displayName = 'Test';

  constructor(props) {
    super(props);
    this.state = {};
  }

  addAppClick = (e) => {
    console.log(e)
    creatApp('第一个App')
  }

  render() {
    return <div className="test-page">
    <Button type="normal"  onClick={(e) => this.addAppClick(e)}> 新增App </Button>
    </div>;
  }
}
